package com.tarena.lbs.marketing.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tarena.lbs.pojo.marketing.po.ActivityPO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ActivityMapper extends BaseMapper<ActivityPO> {
    @Select("select * from activity where marketing_type=1 and FIND_IN_SET(#{storeId},shop_ids)")
    List<ActivityPO> getStoreActivities(Integer storeId);
}
